package com.lihan.GetSeatInLib.Service;

import javax.mail.MessagingException;

import com.lihan.GetSeatInLib.Domain.User;

public interface UserService {
	
	//根据UserID获取User信息
	User getUserInfoByID(long ID);
	
	User getUserInfoByUserName(String UserName);
	
	//插入新的信息
	void InsertNewUser(User user);
	
	//用账号密码登录
	User LoginWirhPassword(String UserName,String password);
	
	//修改密码
	Boolean FixPassword(String UserName,String OldPassword,String NewPassword,String VeriferCode);
	
	//发送修改密码用的短信(验证码会被存到Redis里)
	Boolean SendFixPasswordMail(String UserName) throws MessagingException;

}
